<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
  defined('_JEXEC') or die('Retricted Access');
?>

<form name="adminForm" action="index.php" method="post">
<table width="100%">
	<tr>
	
		<td width="80%" valign="top">
			<table>
			
				<tr>
					<td align="left" width="100%">
						<?php echo JText::_( 'Filter name' ); ?>:
						<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" onchange="document.adminForm.submit();" />
						<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
						<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_catid').value='0';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Filter Reset' ); ?></button>
					</td>
					<td>
						<?php echo $this->lists['state']; ?>
					</td>
				</tr>
			</table>
	    <div style="width:100%;">
			<table class="adminlist">
	        	<thead>
	            	<tr>
	            		<th width="5%" class="title"><?php echo JText::_( 'NUM' ); ?></th>
	            		<th width="5%"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" /></th>
	            		<th>            		
	            			<?php echo JHTML::_('grid.sort',   JText::_('Salary Value'), 'value',@$this->lists['order_Dir'], @$this->lists['order']); ?>
	            		</th>            		
	            		<th width="20%"><?php echo JText::_('Salary Params'); ?></th>
	                    <th width="15%" nowrap="nowrap">
	                        <?php echo JHTML::_('grid.sort',   JText::_('Ordering'), 'ordering', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
	                        <?php echo JHTML::_('grid.order',  $this->items ); ?>  
	                    </th>
	            		<th width="10%">
	            			<?php echo JHTML::_('grid.sort',   JText::_('Published'), 'published',@$this->lists['order_Dir'], @$this->lists['order']); ?>
	            		</th>
	            	</tr>
				</thead>
				<tbody>
	        	<?php
	        	$items = $this->items;
	        	
	        	for($i = 0; $i < count($items); $i++){
	        		$item = $items[$i];
	        		JFilterOutput::objectHtmlSafe($item);
					$checked 	= JHTML::_('grid.checkedout',   $item, $i );
					$item->published = $item->published;
	        		$published 	= JHTML::_('grid.published', $item, $i );
	        		
	        		?>
	        		<tr class="row<?php echo $i%2; ?>">
	            		<td align="center"><?php echo $this->pagination->getRowOffset( $i );  ?></td>            		
	            		<td align="center"><?php echo $checked; ?></td>
	            		<td><a href="<?php echo JRoute::_( 'index.php?option='. $this->lists['option'] .'&view=jasalary&task=edit&cid[]='.$item->id ); ?>"><?php echo $item->value; ?></a></td>          		
	            		<td><?php echo $item->params; ?></td>
	                    <td class="order" nowrap="nowrap">
	                        <span><?php echo $this->pagination->orderUpIcon( $i, true, 'orderup', 'Move Up', true); ?></span>
	                        <span><?php echo $this->pagination->orderDownIcon( $i, 0, true, 'orderdown', 'Move Down', true ); ?></span>
	                        <input type="text" name="ordering[]" size="5" value="<?php echo $item->ordering; ?>" class="text_area" style="text-align: center" />
	                    </td>
	            		<td align="center"><?php echo $published; ?></td>
	            	</tr>
	        	<?php
	        	
				}
	        	?>
	        	</tbody>
	        	<tfoot>
					<tr>
						<td colspan="6">
							<?php echo $this->pagination->getListFooter(); ?>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
	</td>
	</tr>
	</table>
	
	<input type="hidden" name="option" value="<?php echo $this->lists['option']; ?>" />
	<input type="hidden" name="view" value="jasalary" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
	<?php echo JHTML::_( 'form.token' ); ?>	
 </form>
